package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UpdateUserPassWordRequest {

    @NotBlank(message = "第一次密码不能为空")
    @Pattern(regexp="^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,16})$",message = "密码格式不正确")
    @ApiModelProperty("第一次密码")
    private String onePwd;

    @NotBlank(message = "第二次密码不能为空")
    @Pattern(regexp="^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,16})$",message = "密码格式不正确")
    @ApiModelProperty("第二次密码")
    private String twoPwd;

    @NotBlank(message = "原密码不能为空")
    @ApiModelProperty("原密码")
    private String oldPwd;

}
